package com.itwenke.springbootdemo.aop.controller;

import com.itwenke.springbootdemo.aop.aspect.ApiLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping(path = "api/test")
@RestController
public class TestController {

    @RequestMapping(path = "hi")
    @ApiLog()
    public String hi() {
        return "hi";
    }

    @RequestMapping(path = "select")
    @ApiLog()
    public String select() throws InterruptedException {
        Thread.sleep(5000);
        return "select";
    }
}
